<template>
  <el-dialog title="保养标准" :visible.sync="$parent.openObject" width="75%">
    <el-table :data="noticeList">
      <el-table-column label="序号" align="center" width="50">
        <template slot-scope="scope">
          {{ scope.$index + 1 }}
        </template>
      </el-table-column>
      <el-table-column label="编号" align="center" prop="noticeType" min-width="130">
        <template slot-scope="scope">
          {{ scope.row.typeNum || '-' }}
        </template>
      </el-table-column>
      <el-table-column label="名称" align="center" min-width="120">
        <template slot-scope="scope">
          {{ scope.row.typeName || '-' }}
        </template>
      </el-table-column>
      <el-table-column label="周期" align="center" min-width="120">
        <template slot-scope="scope">
          {{ ['一日', '一周', '十五日', '一月', '三月', '六月', '十二月', '不定'][scope.row.cycle] || '-' }}
        </template>
      </el-table-column>
      <el-table-column label="排序" align="center" min-width="120">
        <template slot-scope="scope">
          {{ scope.row.sort || '-' }}
        </template>
      </el-table-column>
      <!-- <el-table-column label="状态" align="center" min-width="120">
            <template slot-scope="scope">
              <dict-tag :options="statusFlag" :value="scope.row.status" />
            </template>
          </el-table-column> -->
      <el-table-column label="备注" align="center" min-width="180">
        <template slot-scope="scope">
          {{ scope.row.remark || '-' }}
        </template>
      </el-table-column>
    </el-table>
    <div align="center" slot="footer" class="dialog-footer">
      <el-button @click="() => $parent.openObject = false">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
// import { getSelectChildrenandUpkeepProject } from '@/api/maintenance/insurance/insurance.js'
export default {
  props: ['row'],
  data () {
    return {
      ObjData: {},
      loading: false,
      noticeList: []
    }
  },
  created () {
    this.getlist()
  },
  methods: {
    /**
     * 初始化
     */
    getlist () {
      this.noticeList = this.row
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .descript .is-bordered {
  table-layout: fixed
}
</style>